<?php 
namespace addons\ad\models;
use models\BaseModel;

class AdTypeModel extends BaseModel {
	const Types = [
		0 => '不限制',
		1 => '限制宽高',
		2 => '限制正方形',
	];
    protected $auto = [
        ['create_time' , 'time' , self::MODEL_INSERT , 'function']
    ];

    protected $validate = [
        ['title' , 'required' , '请输入类型名'] ,
    ];
}